<?
/**
 * Admin Categories Main Menu
 */
(basename($_SERVER['PHP_SELF']) == basename(__FILE__)) && die('Access Denied');
requireAccess('SysAdmin');

// Has user requested a specific action?
switch($_APP->html->getAction()) {
	case ACTION_ADD:
		die(getPageAdd());
	break;
	case ACTION_DEL:
		die(getPageDelete());
	break;
	case ACTION_EDIT:
		die(getPageEdit());
	break;
	case ACTION_VIEW:
		die(getPageView());
	break;
	}

// Fall through to listing current items
die(getPageList());
?>
